package com.wuhuahe.learning.lagou.servie.feign.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "lagou-service-code", path = "/code")
public interface CodeFeignApi {

    @GetMapping("/create/{email}")
    public boolean create(@PathVariable("email") String email);

    @GetMapping("/validate/{email}/{code}")
    public int validate(@PathVariable("email") String email, @PathVariable("code") String code);
}
